package supernova

import (
	"time"

	"gddgame.cc/galaxy/utils/orm"
)

func getModel(executor orm.Executor) *orm.Model {
	return orm.NewModel("schema_migration", &SchemaMigration{}, executor)
}

type SchemaMigration struct {
	Id         int        `json:"id" orm:"auto" sql:"INT"`
	Version    *time.Time `json:"create_time" sql:"DATETIME"`
	IsSuccess  bool       `json:"is_success" sql:"TINYINT"`
	FinishTime *time.Time `json:"finish_time" sql:"DATETIME"`
}
